home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
Mac shareware
/
Education
/
RLaB
/
rlib
/
isnan.r
< prev
next >
Wrap
Text File
|
1994-09-21
|
365b
|
16 lines
//-------------------------------------------------------------------//
// Syntax: isnan ( X )
// Description:
// Isnan returns a matrix the same size as X containing zeros and
// ones. The ones locate the values in X that are NaNs.
//-------------------------------------------------------------------//
isnan = function ( X )
{
return ! ( X == X );
};